console.log(1)
const p = new Promise((resolve, reject) => {
    console.log(2)
    resolve(3)
    console.log(4)
})
p.then(res => {
    console.log(res)
})
console.log(5)